package com.example.provider.config.util;

import java.util.Map;

public class HttpContextHeaderHolder {

    private static final ThreadLocal<Map<String, Object>> CONTEXT = new ThreadLocal<>();

    public static void set(Map<String, Object> httpContextHeader) {
        CONTEXT.set(httpContextHeader);
    }

    public static Map<String, Object> get() {
        return CONTEXT.get();
    }

    public static void clear() {
        CONTEXT.remove();
    }
}
